import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@CrossOrigin
@EnableAutoConfiguration
@ComponentScan(value = {"controller","mapper","service","model"})
@MapperScan(value = {"mapper"})
public class App implements EmbeddedServletContainerCustomizer
{

    public static void main( String[] args )
    {
        SpringApplication.run(App.class,args);
    }



    @Override
    public void customize(ConfigurableEmbeddedServletContainer container) {
        container.setPort(880);
    }
}
